<?php
namespace Ucmaim\Controller\Home;

class IndexController extends CommonController {
    public function Index(){
        //首页轮播
        $carousel = D('Ad')->get('index', 5);
        //网游交易
        $newGoods = D('GoodsCategory')->get(2, true);
	    $this->oneGoods = D('GoodsCategory')->get(1, true, 1);
        $this->assign('carousel', $carousel);
        $this->assign('new_goods', $newGoods);
        $this->news=M('content')->where('category=4')->select();
        $this->guide=M('content')->where('category=3')->select();
        $this->questions=M('content')->where('category=6')->select();

	    $this->buyer=M('content')->where("category=1")->select();
	    $this->seller=M('content')->where("category=2")->select();
	    $this->security=M('content')->where("category=3")->select();
	    $this->question=M('content')->where("category=4")->select();
	    $this->service=M('content')->where("category=5")->select();
        $this->display('Home/Index');
    }
}
